from django.contrib import admin

from home.models import NavCategory, Banner


# Register your models here.

@admin.register(NavCategory)
class NavCategoryAdmin(admin.ModelAdmin):
    list_display = ('name','display_name','weight','external_link','created_time',"orders",'is_show','is_deleted')
    search_fields = ['name','display_name']
    list_filter = ['is_show','is_deleted']

@admin.register(Banner)
class BannerAdmin(admin.ModelAdmin):
    list_display = ('title','image','link','note','created_time',"orders",'is_show','is_deleted')
    search_fields = ['title','note']
    list_filter = ['is_show','is_deleted']